package com.sloth.bear.dto.request;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

@Data
public class DocumentItemRequest {
    
    @NotNull(message = "文档ID不能为空")
    private Long documentId;
    
    @NotBlank(message = "子项名称不能为空")
    @Size(max = 255, message = "子项名称长度不能超过255个字符")
    private String name;
    
    private String content;
    
    private Integer sortNo;
}